import userMenuList from '../assets/file/userMenu';
import adminMenuList from '../assets/file/adminMenu';
import superMenuList from '../assets/file/superadminMenu';
export default function request(url,params) {
    let menuList = new returnMenu();
    switch (url) {
        case '/api/menu':
            return {message : 'success', data : menuList.getMenu(params.role)};
    }
}

class returnMenu{
    getMenu(role){
        switch (role){
            case 'user':
                return userMenuList;
            case 'admin':
                return adminMenuList;
            case 'superadmin':
                return superMenuList;
        }
    }
}

